var path = require('path')
var configEnv = require('./dep')

module.exports = {
  env: {
    NODE_ENV: '"production"',
    GA_ID: '"UA-115041627-3"',
    WAPI: '"//api.welike.in"'
  },
  assetsRoot: path.resolve(__dirname, '../dist'),
  assetsSubDirectory: 'static',
  // assetsPublicPath: '/',
  assetsPublicPath: process.env.NODE_ENV === 'production' ? configEnv.prod.domain : configEnv.test.domain,
  filename: 'js/[name].[chunkhash].js',
  chunkFilename: 'js/[name].[chunkhash].js',
  styleFilename: 'css/[name].[contenthash].css',
  imgname: 'img/[name].[hash:7].[ext]',
  fontname: 'fonts/[name].[hash:7].[ext]',
  htmlMinify: {
    removeComments: true
  },
  vendor: [],
  manifest: true,
  productionSourceMap: false,
  bundleAnalyzerReport: process.env.npm_config_report
}
